#define _CRT_SECURE_NO_WARNINGS 1
#include "Heap.h"
int main()
{
	int a[] = { 1,5,6,8,9,4,2,3 };
	int sz = sizeof(a) / sizeof(a[0]);
	HP hp;
	HPInit(&hp);
	for (int i = 0; i < sz; i++)
	{
		HPPush(&hp, a[i]);
	}
	while (!HPEmpty(&hp))
	{
		printf("%d ", HPTop(&hp));
		HPPop(&hp);
	}
	printf("\n");
	HPDestroy(&hp);
	return 0;
}